'''
Author: xiaonancheng
Date: 2023-07-03 11:45:57
https://www.cnblogs.com/xiaonancheng
Copyright (c) 2023 by @xiaonancheng, All Rights Reserved. 
'''
from django.db import models

# Create your models here.

class User(models.Model):
    uid=models.AutoField(verbose_name='用户id',primary_key=True)
    username=models.CharField(verbose_name='用户名',max_length=10)
    password=models.CharField(verbose_name='密码',max_length=255)
    sex=models.CharField(verbose_name='性别',max_length=1,null=True)
class Box(models.Model):
    bid=models.AutoField(verbose_name='盒子id',primary_key=True)
    w=models.IntegerField(verbose_name='盒子的宽')
    h=models.IntegerField(verbose_name='盒子的高')
    uid=models.ForeignKey('User',on_delete=models.CASCADE)

